layui.use(['element', 'jquery', 'form'], function () {
    var element = layui.element;
    var $ = layui.jquery;
    var form = layui.form;
    form.render(); //更新全部
    form.render('select'); //刷新select选择框渲染
//……

    $(function () {

        $("#main").height($(window).height() + 50);

        $(window).resize(function () {
            $("#main").height($(window).height());
        })
    });
});
// 删除提示弹窗
function deleteMsg (){
    //eg1
    layer.confirm('is not?', {icon: 3, title:'提示'}, function(index){
      //do something
      
      layer.close(index);
    });
    //eg2
    layer.confirm('确认删除', function(index){
      //确认按钮
    
    layer.close(index);
    }); 
  }
  
  // 联盟账号编辑弹窗
  function lmzhEdit(){
      layer.open({
          type: 2,
          title: '编辑信息',
          skin:'page/setting/setting.css',
          shadeClose: true, //点击遮罩关闭层
          area : ['800px' , '520px'],
          content: './Mag/lmzhEdit.html'
          
        });
  }
  function lmzhAdd(){
      layer.open({
          type: 2,
          title: '添加信息',
          skin:'page/setting/setting.css',
          shadeClose: true, //点击遮罩关闭层
          area : ['800px' , '520px'],
          content: './Mag/lmzhAdd.html'
          
        });
  }
  
  